import {Ref} from "vue";
import {CategoryObj} from "@/api/product/attr/type.ts";

export interface UserState {
    token:Ref,
    username:Ref<string>,
    avatar:Ref<string>,
    userLogin:Function,
    menuRoutes:Ref,
    userInfo:Function,
    userLogOut:Function
}

export interface CategoryState {
    category1:Ref<Array<CategoryObj>>,
    category2:Ref<Array<CategoryObj>>,
    category3:Ref<Array<CategoryObj>>,
    C1Id:Ref<string|number>,
    C2Id:Ref<string|number>,
    C3Id:Ref<string|number>,
    getC1:Function,
    getC2:Function,
    getC3:Function,
}
